﻿using System;
using System.Windows.Forms;
using SuckerPunch.Presenters;

namespace SuckerPunch.SettingsUI
{
    public partial class Connection : UserControl
    {
        public delegate void DisplayUIHandler(Settings parent);
        public event EventHandler SaveSettingsInvoked;
        public event DisplayUIHandler OnDisplay;
 
        public Connection()
        {
            InitializeComponent();
        }
        
        public Button ConnectButton
        {
            get { return this.connectBtn; }
        }
        public TextBox FullNameTextBox
        {
            get { return this.fullnameTxt; }
        }
        public TextBox AlternativeTextBox
        {
            get { return this.alternativeTxt; }
        }
        public TextBox NickNameTextBox
        {
            get { return this.nicknameTxt; }
        }
        public TextBox EmailAddressTextBox
        {
            get { return this.emailTxt; }
        }
        public CheckBox InvisibleCheckBox
        {
            get { return this.invisibleChk; }
        }

        public void SaveSettings()
        {
            if(SaveSettingsInvoked !=null)
            {
                SaveSettingsInvoked(this, EventArgs.Empty);
            }
        }

       
    }
}
